sspScreen

fun Number.sspScreen(screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): ERROR CLASS: Symbol not found for TextUnit

EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead. Usage example: 30.sspScreen(50, UiModeType.TELEVISION, DpQualifier.SMALL_WIDTH, 600) → 30.prssp by default, 50.prssp on television with sw >= 600.

PT Extensão para TextUnit (Sp) com dimensionamento dinâmico baseado na Smallest Width (swDP). Usa o valor base por padrão, mas quando o dispositivo corresponde ao uiModeType E a métrica de tela para qualifierType é >= qualifierValue, usa screenValue no lugar.


fun ERROR CLASS: Symbol not found for TextUnit.sspScreen(screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): ERROR CLASS: Symbol not found for TextUnit

EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.

PT Extensão para TextUnit (Sp) com dimensionamento dinâmico baseado na Smallest Width (swDP). Retorna o valor original auto-escalonado usando o qualificador especificado se a condição não for atendida. Quando o dispositivo corresponde ao uiModeType E a métrica de tela para qualifierType é >= qualifierValue, usa screenValue no lugar.